
{if  "[type]" == 'index' }

    {if $account_show }
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('所属公司')}</label>
        <div class="layui-input-inline">
            <select name="account_id" lay-search class="layui-select" lay-filter="platform">

                <option value=''>-- {:lang('全部')} --</option>
                {foreach $account_arr as $id => $name}
                <option value="{$id}">{$name}.</option>
                {/foreach}
            </select>
        </div>
    </div>


    {/if}

{/if}

{if  "[type]" == 'form' }

    {if $account_show}
    <div class="layui-form-item">
        <label class="layui-form-label label-required-next">{:lang('所属公司')}</label>
        <div class="layui-input-block">
            <select name='account_id' class='layui-select' lay-filter="account">
                <option value=''> </option>
                {foreach $account_arr as $key => $name}

                <option value='{$key}' {if isset($vo.account_id) &&  $vo.account_id eq $key} selected {/if} >{$name|raw}</option>

                {/foreach}
            </select>

        </div>
    </div>
{else /}
<input type="hidden" name="account_id" value="{$account_id}">
    {/if}
{/if}

